#include "app_message.h"
#include "log/log.h"
int main(void)
{
    //因为在“”中，所以需要\转义
    char *json_str = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";

    char charsBuf[100];
    int charsLen=app_message_jsonToChars(json_str,charsBuf,100);
    log_info("charsBuf:%.*s, charsLen:%d",charsLen,charsBuf,charsLen);

    char *json_str2 = app_message_charsToJSON(charsBuf,charsLen);
    log_info("json_str2:%s",json_str2);
    return 0;
}